.flex {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: auto;
  overflow: overlay;

  .tabs {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    height: 32px;
    z-index: 1;
    // background: #E0E1E5;
    background: #f0f2f5;

    // padding-top: 8px;
    .tabPane {
      min-width: 114px;
      height: 32px;
      padding: 0 5px;
      background: rgba(102, 102, 102, 0.1);
      border-radius: 3px 3px 0px 0px;
      margin-right: 4px;
      text-align: center;
      line-height: 32px;
      font-size: 14px;
      cursor: pointer;

      //  &:hover {
      //    // background: #fff;
      //  }

      &.active {
        background: #fff;
        cursor: default;
      }
    }
  }

  .formItem {
    &>span {
      display: inline-block;
      width: 90px;
      text-align: right;
    }

    :global {

      .el-input,
      .el-select {
        width: 300px;

        .el-input__inner {
          width: 300px;
        }
      }

      .el-date-editor {
        width: 300px;

        .el-range-separator {
          padding: 0;
        }
      }
    }
  }

  .orderList {
    position: absolute;
    overflow: auto;
    overflow: overlay;
    top: 32px;
    left: 0;
    width: 100%;
    height: calc(~"100% - 32px - 75px");

    .content {
      padding: 10px 20px 0 20px;

      .expand {
        width: 100%;
        height: 100%;
        display: flex;
        text-align: left;
        line-height: 32px;
        color: #666666;

        &:hover {
          background: #f8f8f8;
        }

        .goods {
          width: 595px;
          border-right: 1px solid #D9D9D9;

          .goodContent {
            width: 100%;
            // height: 100%;
            display: flex;
            line-height: 32px;

            :global {
              p {
                /*flex 布局*/
                display: flex;
                /*实现垂直居中*/
                align-items: center;
                /*实现水平居中*/
                // justify-content: center;

                text-align: justify;
                padding: 10px 10px 0 10px;

                &:first-child {
                  padding-left: 10px;
                }
              }
            }

            .name {
              width: 344px;
              text-align: left;
              border-right: 1px solid #D9D9D9;
            }

            .price {
              width: 138px;
              border-right: 1px solid #D9D9D9;

              .invalid {
                color: #C5C5C5;
                margin-right: 8px;
                text-decoration: line-through;
              }
            }

            .total {
              width: 113px;
            }
          }

          :global {
            p {
              &:last-child {
                p {
                  padding-bottom: 10px;
                }
              }
            }
          }
        }

        .amount {
          width: 158px;
          padding: 0 10px 0 10px;
          border-right: 1px solid #D9D9D9;
        }

        .status {
          padding: 0 10px 0 10px;
          width: 149px;
          border-right: 1px solid #D9D9D9;
        }

        .opt {
          padding: 0 10px 0 10px;
          // width: 15.5%;
          flex: 1;
        }
      }

      :global {
        .el-table {
          &.notEmpty {
            &:before {
              height: 1px !important;
            }
          }

          .el-table__expand-icon {
            display: none;
          }

          tr {
            .el-table__expanded-cell {
              padding: 0 !important;
              border: none;
              // box-shadow:0px 1px 0px 0px rgba(217, 217, 217, 1);
            }
          }

          .order-title {

            // display: inline-block;
            .order-no {
              display: inline-block;
              width: 183px;
            }
          }

          thead {
            tr {
              th {
                &:first-child+th {
                  .cell {
                    padding-left: 10px;
                  }
                }

                .cell {
                  padding-left: 10px;
                }
              }
            }
          }

          .el-table__row {
            &.expanded {
              background: #F0F5FF;

              td {
                border: none;

                &:nth-child(2) {
                  >.cell {
                    width: 100% !important;
                  }
                }
              }

              &:hover {
                td {
                  background: #F0F5FF;
                }
              }
            }
          }

          .el-table__expanded-cell {
            height: auto !important;
          }
        }
      }
    }
  }

  .pagination {
    position: absolute;
    width: 100%;
    height: 75px;
    bottom: 0;
    z-index: 1;
    right: 0;
    border-top: 1px solid #EBEEF5;
  }
}